<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>

<%@ Page Language="c#" Inherits="PHSRAG.Insight21.BudgetBuilderSummary"
    CodeFile="BudgetBuilderSummary.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Budget Builder Summary</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="BudgetBuilderSummaryForm" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table class="Header">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:ClinicalTrialsSubNavigation ID="clinicaltrialsSubNavigation" runat="server"></cc1:ClinicalTrialsSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellpadding="10" cellspacing="10" style="background-color: #ffffff">
                        <tr>
                            <td>
                                <cc2:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler" IsExpanded="true">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="commonSearch" OnClearSelection="OnClearSelection" runat="server"
                                                        ExtendedSearchControl="budgetsSearch" Field1Prompt="Trial Name:" Field1ID="trialName"
                                                        Field2Prompt="Sponsor Name:" Field2ID="sponsorName" OnSearch="OnSearch" COSPickerVisible="false"
                                                        LabPickerVisible="false" Module="ClinicalTrials" ViewOptionVisible="false" AddSinglePIToSearchCriteria="false"
                                                        PickerControl="../ClinicalTrials/Controls/PIPicker.ascx"></cc1:CommonSearch>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="search">
                                            <tr>
                                                <td>
                                                    <cc1:BudgetBuilderSearch ID="budgetsSearch" runat="server"></cc1:BudgetBuilderSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Button ID="createNewBudget" runat="server" CssClass="Button" Text="Develop New Trial Budget">
                                            </asp:Button></td>
                                        <td>
                                            <asp:Label ID="institutionLabel" runat="server">Choose Insitution:</asp:Label></td>
                                        <td>
                                            <asp:DropDownList AutoPostBack="true" ID="institution" runat="server">
                                            </asp:DropDownList></td>
                                        <td>
                                            <asp:Button ID="procedurePicker" runat="server" Text="Procedure Lookup"></asp:Button></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
						        <table width="100%" class="TitleBar">
							        <tr class="Title">
								        <td style="text-align: center">
                                            Effective 11/24/09 the FY10 rates are available in Budget Builder.                            
								        </td>
							        </tr>
						        </table>
					        </td>
				        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable"></cc2:ActivityIndicator>
                            </td>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <asp:Label ID="message" runat="server" Visible="False">message</asp:Label>
                    <asp:Panel ID="gridContainer" runat="server">
                        <table class="PlaceBar" style="height:24px">
                            <tr>
                                <td class="PageName">
                                    Budget Summary
                                </td>
                            </tr>
                        </table>
                        <table width="100%" cellspacing="0">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DataGrid ID="budgetSummaryGrid" runat="server" CssClass="DataGrid" Width="100%"
                                        AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" AllowCustomPaging="True">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn Visible="True" DataField="BudgetID" HeaderText="Id"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="PIName" SortExpression="PIName" ReadOnly="True" HeaderText="PI Name">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="OriginatorName" SortExpression="OriginatorName" ReadOnly="True"
                                                HeaderText="Originator Name"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="SponsorName" SortExpression="SponsorName" ReadOnly="True"
                                                HeaderText="Sponsor Name" />
                                            <asp:ButtonColumn DataTextField="ShortTitle" SortExpression="StudyShortTitle" HeaderText="Short Title"
                                                CommandName="SelectBudget"></asp:ButtonColumn>
                                            <asp:BoundColumn DataField="Status" SortExpression="Status" HeaderText="Status" />
                                            <asp:BoundColumn DataField="FolderNumber" SortExpression="FolderNumber" ReadOnly="True"
                                                HeaderText="Proposal #"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="InsertedDate" SortExpression="InsertedDate" ReadOnly="True"
                                                HeaderText="Create Date"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="LastModifiedDate" SortExpression="LastModifiedDate" ReadOnly="True"
                                                HeaderText="Update Date"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Clone" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="cloneBudget" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Delete" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="deleteBudget" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn Visible="False" DataField="AccessRightBitmask"></asp:BoundColumn>
                                        </Columns>
                                        <PagerStyle Visible="False"></PagerStyle>
                                    </asp:DataGrid>
                                </td>
                            </tr>
                        </table>
                        <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                    </asp:Panel>
                    <div style="text-align: right">
                        <table>
                            <tr>
                                <td>
                                    <asp:Button ID="delete" OnClick="OnDelete" CssClass="Button" runat="server" Text="Delete">
                                    </asp:Button>
                                    &nbsp;<asp:Button ID="clone" CssClass="Button" runat="server" Text="Clone"></asp:Button>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
